﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ControlCenter : MonoBehaviour
{
    public Transform car;
    public GameObject PlayerObj;
    void Start()
    {
        if (PlayerObj.gameObject.activeInHierarchy == true)
        {
            car.gameObject.SetActive(false);
        }
    }
    private void Update()
    {
        if (Input.GetKey("v")) 
        {
            car.gameObject.SetActive(true);
            PlayerObj.gameObject.SetActive(false);
        }
        if (Input.GetKey("b"))
        {
            car.gameObject.SetActive(false);
            PlayerObj.gameObject.SetActive(true);
        }
    }

}
